<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

  <div th:replace="~{/fragment/header :: header-nav}"></div>
  <div th:replace="~{/fragment/header :: header}"></div>
  <div th:replace="~{/fragment/header :: header-css}"></div>

</head>
<body>

<form action="/user/save" th:action="@{/user/save}" th:object="${user}" method="post">
    <input th:field="*{id}" type="hidden">
    <div class="mb-3">
        <label for="username" class="form-label">用户名：</label>
        <input type="text"  th:field="*{username}" class="form-control" id="username" aria-describedby="emailHelp">
        <div id="emailHelp" class="form-text">笑死我了</div>
    </div>
    <div class="mb-3">
        <label for="password" class="form-label">密码</label>
        <input type="password" th:field="*{password}" class="form-control" id="password">
    </div>
    <div class="mb-3 form-check">
        <input type="checkbox" class="form-check-input" id="exampleCheck1">
        <label class="form-check-label" for="exampleCheck1">检查</label>
    </div>
    <button type="submit" class="btn btn-primary">提交</button>
    <a th:href="@{/user/list}" class="btn-secondary">返回</a>
</form>

<div th:replace="~{/fragment/footer :: footer}"></div>
<div th:replace="~{/fragment/header :: header-js}"></div>

</body>
</html>